import java.security.MessageDigest

class PasswordCodec {

	static encode = { str ->
		MessageDigest md = MessageDigest.getInstance('SHA1')
		md.update(str.getBytes('UTF-8'))
		return md.digest().encodeAsHex();
	}

}